#pragma once
#ifdef WIN32
#include <GL/glut.h>
#define GL_CLAMP_TO_EDGE 0x812F
#endif
#ifdef __APPLE__
#include <GLUT/glut.h>
#endif
#include "PngImage.h"
#include <string>
#include <iostream>
#include <fstream>

namespace lib3dw 
{
	class PNGTexture
	{
		public:
			PNGTexture(std::string , const char*);
			~PNGTexture();

			const std::string GetName() const;
			const GLuint GetId() const;
			unsigned long width;
			unsigned long height;

		private:
			GLuint* texture;
			std::string name;
			char* image;
			int result;
	};
}